<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>京东笔试题</title>
</head>
<body>
<script>
    setTimeout( ()=> {
        console.log(1);
    },0);
    console.log(2);
    new Promise((resolve,reject)=>{
        console.log(3);
        resolve();
    }).then(()=>{
        console.log(4);
    });
    console.log(5);
    setTimeout( ()=> {
        console.log(6);
    },0);
    new Promise((resolve,reject)=>{
        console.log(7);
        resolve();
    })
    //2 3 5 7 4 1 6

    console.log([]==![]);//true,[]  会被转换成1，而！[]县把它转换成布尔值，也就是false在非，就是true，然后在转换成数字，就是1
    console.log([]==[]);//false
</script>
</body>
</html>